/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.dao.jpa;

import com.wiai.untl.core.dao.HariDAO;
import com.wiai.untl.core.entity.Hari;
import java.util.List;

/**
 *
 * @author Hendro Steven
 */
public class HariDAOImpl extends GeneralDAOImpl implements HariDAO {

    @Override
    public List<Hari> getAllHari() {
        return getJpaTemplate().find("Select h From Hari h");
    }

    @Override
    public Hari getById(long id) {
        return (Hari)getJpaTemplate().find(Hari.class, id);
    }
    
}
